<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>驾校系统</title>
    <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="css/okadmin.css">
    <style>
        .cpanel div.icon span {
            -moz-transition-duration: 0.8s;
            background-color: rgb(87 133 222);
            background-position: -30px 50%;
            border: 1px solid #CCCCCC;
            border-radius: 60px;
            color: #312e2e;
            display: block;
            float: left;
            height: 100px;
            width: 100px;
            text-align: center;
            text-indent: 0;
        }

        .cpanel div.icon span:hover {
            border: 1px solid blue;
        }
        .ok-tab-content{
            margin-top: -20px;
        }
        .layui-nav a{
            cursor: pointer;
        }
    </style>
</head>
<body class="layui-layout-body">
<!-- 更换主体 Eg:orange_theme|blue_theme -->
<div class="layui-layout layui-layout-admin okadmin blue_theme ok-left-hide">
    <!--头部导航-->
    <div class="layui-header okadmin-header">
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item">
            </li>
            <li class="layui-nav-item " style="margin:-20px 0 0 -15px; display: none" id="userLogo">
                <div class="okadmin-logo left" style="font-size: 16px">
                    驾校管控系统
                </div>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <ul class="layui-nav">
                <li class="layui-nav-item layui-this"><a href="studentIndex.html?page=studentMain" >首页</a></li>
                <li class="layui-nav-item" id="coachChoice"><a href="studentIndex.html?page=coach/coachChoice" >教练选取</a></li>
                <li class="layui-nav-item"><a href="studentIndex.html?page=coach/coachEvaluate" >我的教练</a></li>
                <li class="layui-nav-item"><a href="studentIndex.html?page=notice/noticeListByUser" >公告查看</a></li></li>
                <li class="layui-nav-item">
                    <a href="javascript:;">我</a>
                    <dl class="layui-nav-child">
                        <dd><a href="studentIndex.html?page=student/studentEditBystudent" >个人中心</a></dd>
                        <dd><a href="studentIndex.html?page=student/studentPwd" >密码修改</a></dd>
                        <dd>
                            <hr/>
                        </dd>
                        <dd><a href="javascript:void(0)" id="logout">退出登录</a></dd>
                    </dl>
                </li>
            </ul>
        </ul>
    </div>
    <!-- 内容主体区域 -->
    <div class="content-body center" id="contentBody">
        <div class="layui-tab ok-tab" lay-filter="ok-tab" lay-allowClose="true" lay-unauto>
            <div id="tabContent" class="layui-tab-content ok-tab-content">
                <div class="layui-tab-item layui-show">
                    <iframe src='pages/studentMain.html' frameborder="0" scrolling="yes" width="100%" id="iframeIndex"
                            height="100%"></iframe>
                </div>
            </div>
        </div>
    </div>

    <!--底部信息-->
    <div class="layui-footer okadmin-text-center">

    </div>
</div>
<div class="yy"></div>
<!--js逻辑-->
<script src="js/jquery.min.js"></script>
<script src="lib/layui/layui.js"></script>
<script src="js/userIndex.js"></script>
<script src="js/application.js"></script>
<script>
    if(isNoEmpty(user['studyType'])&&user['studyType']!=-1){
        $("#coachChoice").hide()
    }
    $(function () {
        var pageMain=GetQueryString("page");
        if(pageMain!=""){
            myAjaxGet("data/pages.json",function(data){
                var pages=pageMain.split("/")
                for(page of pages){
                    data=data[page]?data[page]:""
                }
                $("#iframeIndex").attr("src",data['uri']?data['uri']:"")
            },"")
        }
    })
</script>
</body>
</html>
